﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Mobile.FirstWebApplication.Business;
using Mobile.WebControls.Field;

namespace Mobile.FirstWebApplication
{
    public partial class AddUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Control control = ControlHelper.GetControlById(mpUsersList, "cbCountry");
            if (control is ComboBox)
            {
                ComboBox comboBox = control as ComboBox;
                comboBox.DataSource = CountryManager.GetCountries();
                comboBox.DataBind();
            }
        }
    }
}